﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LibSolPedI;
using WebLibSolPedBE;
using LibSolPedDALC;

namespace LibSolPedLN
{
    public class cLibSolPedLN
    {
        
        
        private string _connId = string.Empty;

        public static cLibSolPedLN Instance()
        {
            if (_instance == null)
            {
                lock (typeof(cLibSolPedLN))
                {
                    if (_instance == null)
                    {
                        _instance = new cLibSolPedLN();
                    }
                }
            }
            return _instance;
        }
        private cLibSolPedLN(string pConnId) { this._connId = pConnId; }
        private cLibSolPedLN() { }
        private static volatile cLibSolPedLN _instance = null;
        public List<SolPedBE> getLstSolPed()
        {
            List<SolPedBE> lst = new List<SolPedBE>();

            try
            {
                lst = CLibSolPedDALC.Instance().getLstSolPed();
            }catch(Exception ex)
            {
            }
            return lst;
        }

        public String setLibSolPed(List<SolPedBE> lst) {
            string ret = "";
            try
            {
                ret = CLibSolPedDALC.Instance().setLibSolPed(lst);
            }
            catch (Exception ex)
            {
            }

            return ret;
        }
    }
}
